
import React from 'react';

interface CodeBlockProps {
  code: string;
  language?: string;
}

const CodeBlock: React.FC<CodeBlockProps> = ({ code, language }) => {
  return (
    <pre className="code-block">
      {language && <div className="language-tag">{language}</div>}
      <code>{code}</code>
    </pre>
  );
};

export default CodeBlock;